package com.example.zkfx.room

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query

@Dao
interface ScoreDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(score: Score)
    @Query("select * from score")

    fun queryAll():MutableList<Score>//查询全部
    @Query("select * from score where type = :type")
    fun queryType(type: Int):MutableList<Score>//查询指定类型
}